<include file="Layout/header" />
<div class="mws-panel grid_4">
                    <div class="mws-panel-header">
                        <span>修改分类</span>form_layo
                    </div>
                    <div class="mws-panel-body no-padding">
                        <form class="mws-form" action="{:U('Sort/edit')}" method="post">
                            <fieldset class="mws-form-inline">
                                
                                <div class="mws-form-row bordered">
                                    <label class="mws-form-label">分类名 </label>
                                    <div class="mws-form-item">
                                        <input type="text" class="large" name="class" value="{$class['class']}">
                                    </div>
                                </div>
                                 <input type="hidden" name="id" value="{$class['id']}"> 
                            </fieldset>
                            <fieldset class="mws-form-inline">
                                <div class="mws-form-row bordered">
                                    <label class="mws-form-label">所属栏目</label>
                                    <div class="mws-form-item">
                                        <select class="large" name="pid">
                                            <option value="0">✔&nbsp;顶级分类-</option>
                                            <foreach name="data" item="val">
                                            <option value="{$val['id']}"  {$val['id']==$class['id']?'selected':''}>{$val['_html']}</option>
                                            </foreach>
                                        </select>
                                    </div>
                                </div>
                                 <!-- <div class="mws-form-row bordered">
                                    <label class="mws-form-label">排序 </label>
                                    <div class="mws-form-item">
                                        <input type="text" class="large" name="order" value="">
                                    </div>
                                </div> -->
                                <div class="mws-form-row bordered">
                                    <label class="mws-form-label">描述</label>
                                    <div class="mws-form-item">
                                        <textarea rows="" cols="" name="description" class="large">{$class['description']}</textarea>
                                    </div>
                                </div>
                            </fieldset>
                            <div class="mws-button-row">
                                <input type="submit" value="修改" class="btn btn-danger">
                                <input type="reset" value="重置" class="btn ">
                            </div>
                        </form>
                    </div>      
                </div>
<include file="Layout/footer" />
